Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: environments might be an empty object #19207

Closed
wants to merge 1 commit into from
Closed

Conversation

GauBen
Copy link
Contributor

@GauBen GauBen commented Jan 14, 2025

Description

Hey! Small fix needed after Vite v6: topLevelConfig.environments might be an empty object, as there are no default environment anymore.

This will probably be needed as long as some environments are hardcoded:

const environment: PartialEnvironment = new PartialEnvironment(
'client',
config,
)

I can try to provide some test cases, but I'm not sure how to do so. Please bear with me!

@GauBen
Copy link
Contributor Author

GauBen commented Jan 14, 2025

False alarm, the code is correct, it's an error in a consumer package, sorry for the noise 😬

@GauBen GauBen closed this Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant